Python Forum
Can I get a clue about testing please?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I get a clue about testing please?
#1
I am picking up Python in a serious way, these days.
While reading through the syntax and standard libraries, I am also super-curious about the Python ecosystem.

In particular, I want to write code that is all unit-tested and then create repo's that enforce integration-testing.
Then, I want to have, like, functional testing suites for more end-to-end testing.

I have lots of experience with Java-JUnit-Maven and was wondering if Python adopts a similar build-test-deploy model or has some new patterns for me to learn?

Also, I've initially looked into the 'unittest' module. I've written some unit tests for my example application, ran those in the IDE, observed results... OK, that's cool :)

Then, I was interested in integrating my example application into a CI-CD system and wrote a little github workflow YAML file that sets up, builds and then runs tests - but that was using the 'pytest' module.

Is 'pytest' a "competitor" to 'unittest' or a complement (and, in that case, what is each used for?)?

'unittest' was kinda easy for me to understand, because it feels a lot like JUnit but in Python...
'pytest' was a little more obscure, as it uses a lot of standard folder and file names, which you need to know about in order to configure it correctly... But once I managed, it does look more sleek.

Yeah, I see my question is a bit broad and messy. I am just going to appreciate any discussion, idea, suggestion, etc :)
Reply


Messages In This Thread
Can I get a clue about testing please? - by Mustey - Apr-11-2021, 08:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I have no clue what I am doing wrong here elroberto 4 1,384 Jun-18-2022, 08:56 PM
Last Post: deanhystad
  I haven't a clue how to implement this logic 357mag 3 2,136 Apr-02-2020, 04:35 PM
Last Post: 357mag
  Getting syntax error, no clue why KaynRyu 4 3,142 Mar-26-2019, 02:43 PM
Last Post: KaynRyu
  I have no clue whats wrong... Jack_03 1 2,838 Sep-28-2017, 05:36 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020