Skip to content
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

Merged
merged 5 commits into from
Jun 21, 2017

Conversation

plessbd
Copy link
Contributor

@plessbd plessbd commented Jun 21, 2017

Motivation and Context

Tests are good

Tests performed

These perform the tests

Types of changes

  • New feature (non-breaking change which adds functionality)

$phpunit ${PHPUNITARGS} .
exit $?

#phpunit `dirname $0`
Copy link
Member

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 $?
Copy link
Member

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.

Copy link
Contributor Author

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"
Copy link
Member

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?

Copy link
Contributor Author

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');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong.

Copy link
Contributor Author

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
-------------------------------

Copy link
Member

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.

@plessbd
Copy link
Contributor Author

plessbd commented Jun 21, 2017

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.

@jpwhite4 jpwhite4 merged commit 6bd1ed6 into ubccr:xdmod7.0 Jun 21, 2017
@tyearke tyearke added the qa label Aug 14, 2017
@tyearke tyearke added this to the v7.0.0 milestone Aug 14, 2017
@plessbd plessbd deleted the regression-tests branch September 13, 2017 13:40
@plessbd plessbd added the qa / testing Updates/additions to tests label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa / testing Updates/additions to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants