-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests are silently skipped since version 6.11 #1565
Comments
@gdemecki - Please help share a sample that can be used to reproduce the issue. |
Hi @krmahadevan, sure, I've already added a sample. |
@gdemecki - Thank you! |
@gdemecki - I am not able to reproduce this with the latest released version of TestNG viz., TestNG 6.12-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
...
... TestNG 6.12 by Cédric Beust (cedric@beust.com)
...
===== Invoked methods
SampleClassATest.should_create_admin_return_ok()[pri:0, instance:testng.bug1565.showcase.SampleClassATest@1b0375b3] 453211571
SampleClassBTest.should_create_user_return_ok_when_user_is_valid()[pri:0, instance:testng.bug1565.showcase.SampleClassBTest@6b71769e] 1802598046
SampleClassATest.should_create_admin_return_ok_when_request_is_valid()[pri:1, instance:testng.bug1565.showcase.SampleClassATest@1b0375b3] 453211571
SampleClassATest.should_get_admin_return_ok_when_given_existing_admin_id()[pri:0, instance:testng.bug1565.showcase.SampleClassATest@1b0375b3] 453211571
SampleClassATest.should_create_admin_return_ok_when_user_and_buildings_are_correct()[pri:2, instance:testng.bug1565.showcase.SampleClassATest@1b0375b3] 453211571
=====
PASSED: should_create_admin_return_ok
PASSED: should_create_user_return_ok_when_user_is_valid
PASSED: should_create_admin_return_ok_when_request_is_valid
PASSED: should_get_admin_return_ok_when_given_existing_admin_id
PASSED: should_create_admin_return_ok_when_user_and_buildings_are_correct
===============================================
My_Test
Tests run: 5, Failures: 0, Skips: 0
===============================================
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.317 sec - in TestSuite
Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0 TestNG 6.9.10-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
...
... TestNG 6.9.10 by Cédric Beust (cedric@beust.com)
...
[PackageUtils] Looking for test classes in the directory: /Users/krmahadevan/temp/TestNG-1565/target/test-classes/testng/bug1565/showcase
[PackageUtils] Found class SampleClassATest, seeing it if it's included or excluded
[PackageUtils] ... Including class SampleClassATest
[PackageUtils] Found class SampleClassBTest, seeing it if it's included or excluded
[PackageUtils] ... Including class SampleClassBTest
[TestRunner] Running the tests in 'My_Test' with parallel mode:false
[RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@d70c109 priority: 10
[TestClass] Creating TestClass for [ClassImpl class=testng.bug1565.showcase.SampleClassATest]
[TestClass] Adding method SampleClassATest.should_create_admin_return_ok_when_user_and_buildings_are_correct()[pri:2, instance:null] on TestClass class testng.bug1565.showcase.SampleClassATest
[TestClass] Adding method SampleClassATest.should_create_admin_return_ok()[pri:0, instance:null] on TestClass class testng.bug1565.showcase.SampleClassATest
[TestClass] Adding method SampleClassATest.should_create_admin_return_ok_when_request_is_valid()[pri:1, instance:null] on TestClass class testng.bug1565.showcase.SampleClassATest
[TestClass] Adding method SampleClassATest.should_get_admin_return_ok_when_given_existing_admin_id()[pri:0, instance:null] on TestClass class testng.bug1565.showcase.SampleClassATest
[TestClass] Creating TestClass for [ClassImpl class=testng.bug1565.showcase.SampleClassBTest]
[TestClass] Adding method SampleClassBTest.should_create_user_return_ok_when_user_is_valid()[pri:0, instance:null] on TestClass class testng.bug1565.showcase.SampleClassBTest
[XmlMethodSelector] Including method testng.bug1565.showcase.should_create_admin_return_ok_when_user_and_buildings_are_correct()
[XmlMethodSelector] Including method testng.bug1565.showcase.should_create_admin_return_ok()
[XmlMethodSelector] Including method testng.bug1565.showcase.should_create_admin_return_ok_when_request_is_valid()
[XmlMethodSelector] Including method testng.bug1565.showcase.should_get_admin_return_ok_when_given_existing_admin_id()
[XmlMethodSelector] Including method testng.bug1565.showcase.should_create_user_return_ok_when_user_is_valid()
[SuiteRunner] Created 1 TestRunners
[TestRunner] Running test My_Test on 2 classes, included groups:[] excluded groups:[]
===== Test class
testng.bug1565.showcase.SampleClassATest
@Test SampleClassATest.should_create_admin_return_ok_when_user_and_buildings_are_correct()[pri:2, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb]
@Test SampleClassATest.should_create_admin_return_ok()[pri:0, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb]
@Test SampleClassATest.should_create_admin_return_ok_when_request_is_valid()[pri:1, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb]
@Test SampleClassATest.should_get_admin_return_ok_when_given_existing_admin_id()[pri:0, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb]
======
===== Test class
testng.bug1565.showcase.SampleClassBTest
@Test SampleClassBTest.should_create_user_return_ok_when_user_is_valid()[pri:0, instance:testng.bug1565.showcase.SampleClassBTest@35bbe5e8]
======
[Invoker 1627960023] Invoking testng.bug1565.showcase.SampleClassATest.should_create_admin_return_ok
[Invoker 1627960023] Invoking testng.bug1565.showcase.SampleClassBTest.should_create_user_return_ok_when_user_is_valid
[Invoker 1627960023] Invoking testng.bug1565.showcase.SampleClassATest.should_create_admin_return_ok_when_request_is_valid
[Invoker 1627960023] Invoking testng.bug1565.showcase.SampleClassATest.should_create_admin_return_ok_when_user_and_buildings_are_correct
[Invoker 1627960023] Invoking testng.bug1565.showcase.SampleClassATest.should_get_admin_return_ok_when_given_existing_admin_id
===== Invoked methods
SampleClassATest.should_create_admin_return_ok()[pri:0, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb] 1057941451
SampleClassBTest.should_create_user_return_ok_when_user_is_valid()[pri:0, instance:testng.bug1565.showcase.SampleClassBTest@35bbe5e8] 901506536
SampleClassATest.should_create_admin_return_ok_when_request_is_valid()[pri:1, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb] 1057941451
SampleClassATest.should_create_admin_return_ok_when_user_and_buildings_are_correct()[pri:2, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb] 1057941451
SampleClassATest.should_get_admin_return_ok_when_given_existing_admin_id()[pri:0, instance:testng.bug1565.showcase.SampleClassATest@3f0ee7cb] 1057941451
=====
Creating /Users/krmahadevan/temp/TestNG-1565/target/surefire-reports/My_Suite/My_Test.html
Creating /Users/krmahadevan/temp/TestNG-1565/target/surefire-reports/My_Suite/My_Test.xml
PASSED: should_create_admin_return_ok
PASSED: should_create_user_return_ok_when_user_is_valid
PASSED: should_create_admin_return_ok_when_request_is_valid
PASSED: should_create_admin_return_ok_when_user_and_buildings_are_correct
PASSED: should_get_admin_return_ok_when_given_existing_admin_id
===============================================
My_Test
Tests run: 5, Failures: 0, Skips: 0
===============================================
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.315 sec - in TestSuite
Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
|
Hi All, |
@jeetendrae - The latest released version of TestNG is |
Although I no longer use TestNG, I've checked this specific case, and on my provided sample it looks like this:
@jeetendrae So it seems the issue you observed is something different that this one. |
TestNG Version
6.11
Expected behavior
All tests in the project are executed.
Actual behavior
Some tests are silently skipped.
The problem seems to be related to the
priority
attribute, because without it, all tests in all groups are executed correctly.Is the issue reproductible on runner?
Test case sample
https://github.com/gdemecki/TestNG-1565
The text was updated successfully, but these errors were encountered: