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

Normalized test names and file names #4366

Merged
merged 2 commits into from
Mar 22, 2021
Merged

Conversation

AustinSanders
Copy link
Contributor

Changes the file and test names to better match the guidelines described here

Description

Related Issue

#4206

Motivation and Context

Test names should be consistent

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation change (update to the documentation; no code change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read and agree to abide by the Code of Conduct
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have added myself to the .zenodo.json document.
  • I have added any user impacting changes to the CHANGELOG.md document.

Licensing

This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words:

This work is free and unencumbered software released into the public domain. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain.

  • I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

@@ -13,7 +13,7 @@ using namespace Isis;

static QString APP_XML = FileName("$ISISROOT/bin/xml/camdev.xml").expanded();

TEST_F(LineScannerCube, FunctionalTestsCamDevDefault) {
TEST_F(LineScannerCube, FunctionalTestCamDevDefault) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm following the normalization, shouldn't this be "FunctionalTestCamdevDefault" ?

@@ -12,10 +12,10 @@ using namespace Isis;

static QString APP_XML = FileName("$ISISROOT/bin/xml/moccal.xml").expanded();

TEST_F(MgsMocCube, FunctionalTestMroMoccalDefault) {
TEST_F(MgsMocCube, FunctionalTestMromoccalDefault) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how this got through the first time. "moccal" is an MGS app not an MRO. On the other hand, the app name is "moccal" not "mgsmoccal", shouldn't this just be "FunctionalTestMoccalDefault" ?

EXPECT_DOUBLE_EQ(oCubeStats->Average(), 0.056909484090283513);
EXPECT_DOUBLE_EQ(oCubeStats->Sum(), 22.763793636113405);
EXPECT_DOUBLE_EQ(oCubeStats->ValidPixels(), 400);
EXPECT_DOUBLE_EQ(oCubeStats->StandardDeviation(), 0.0021719888294085255);
}


TEST_F(MgsMocCube, FunctionalTestMroMoccalIofFalse) {
TEST_F(MgsMocCube, FunctionalTestMromoccalIofFalse) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -85,10 +85,10 @@ TEST_F(MgsMocCube, FunctionalTestMroMoccalIofFalse) {
}


TEST_F(MgsMocCube, FunctionalTestMroMoccalNullwagoTrue) {
TEST_F(MgsMocCube, FunctionalTestMromoccalNullwagoTrue) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -121,7 +121,7 @@ TEST_F(MgsMocCube, FunctionalTestMroMoccalNullwagoTrue) {
}


TEST_F(MgsMocCube, FunctionalTestMroMoccalCameraComparison) {
TEST_F(MgsMocCube, FunctionalTestMromoccalCameraComparison) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Collaborator

@Kelvinrr Kelvinrr left a comment

Choose a reason for hiding this comment

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

Other than the ones Stuart found, I couldn't find other inconsistencies.

@acpaquette acpaquette requested a review from scsides March 17, 2021 22:20
@Kelvinrr
Copy link
Collaborator

@scsides Does this look good to go?

@Kelvinrr Kelvinrr merged commit ac93480 into DOI-USGS:dev Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants