-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add regression tests for usage explorer #165
Conversation
$phpunit ${PHPUNITARGS} . | ||
exit $? | ||
|
||
#phpunit `dirname $0` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the commented out code in this file.
fi | ||
|
||
$phpunit ${PHPUNITARGS} . | ||
exit $? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, it will be removed
fi | ||
|
||
#PHPUNITARGS="" | ||
PHPUNITARGS="--stop-on-error --stop-on-failure" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you add these command line arguments that override the settings in the phpunit.xml.dist file? Why not set the phpunit.dist file with the settings that you want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For testing, this will be removed
if(!empty($envUserrole)){ | ||
self::$helper->authenticate($envUserrole); | ||
} | ||
$envBaseDir = getenv('REG_TEST_REGEX'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was
|
||
Generating the expected results | ||
------------------------------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you have added a load of environment variables. please document them here.
Keep in mind this is a starting point and is specifically being used by me for federation based testing. I just wanted to get this out there as something that might be useful for others. @jpwhite4 and I have already had some discussions on how to make this more "generic" and useful for automated regression tests. However I dont have time to do all that work at the moment. |
Motivation and Context
Tests are good
Tests performed
These perform the tests
Types of changes