Hello,

As mentioned in another thread about contributing, I investigate myself to
explain HowTo

First, some explanation about what I call unitary tests and integration
tests.
Both are JUnit or TestNG tests, but theyr run in different maven phase:
- Unitary test are run during test phase and they should build their
context by their own
- Integration tests are run during integration-test phase and they should
expect external context setup during pre-integration-test phase

Today, on Netbeans 12.6:
- Integration tests are run on project 'Build' and 'Clean and Build', OK
that's Maven stuff nothing from Netbeans
- If you configure verify goal to 'Test Project' action, ITs are run, but
better than 'Build', the 'Test Result' will have one tab for UTs and one
for ITs
- From a test file, no  check is made to know if the test class is an UTs
or an ITs, the test class is launched as a unitary test.
- From a src file, Netbeans search if there is one test class with the same
name suffixed with 'Test' and run it as a UT

My new year resolution for 2022 is to contribute to Netbeans by adding IT
run as UT run from contextual menu.
That's a big challenge for me, that will take time.
Anyways, lets' go ...

Regards,

Arnaud

Le mar. 4 janv. 2022 à 13:43, Arnaud bourree <arnaud.bour...@gmail.com> a
écrit :

> Hello,
>
> I use Netbeans 12.6 on Windows server 2016 with OpenJDK 11 and Maven 3.6.3
>
> I've some integration tests written with JUnit that Maven knows how to
> launch with failsafe.
> I'd like to run integration tests like unitary tests from Netbeans.
> I saw that there are project actions "Integration test file" and "Debug
> integration test".
> I expect Netbeans to propose to me something like "Test Integration File"
> instead of "Test File" on JUnit tests matching failsafe configuration : it
> doesn't.
>
> I didn't find any web pages explaining how to nor any limitation?
>
> Any idea how to?
>
> Regards,
>
> Arnaud
>

Reply via email to