Skip to content

Instantly share code, notes, and snippets.

@philipmjohnson
Created August 30, 2017 01:29
RadGrad unit test example invocation
$ meteor npm run test
> radgrad@ pretest /Users/philipjohnson/github/radgrad/radgrad/app
> npm run lint
> radgrad@ lint /Users/philipjohnson/github/radgrad/radgrad/app
> eslint --quiet ./imports
> radgrad@ test /Users/philipjohnson/github/radgrad/radgrad/app
> TEST_BROWSER_DRIVER=nightmare meteor test --once --driver-package dispatch:mocha --no-release-check --port 3100
[[[[[ Tests ]]]]]
=> Started proxy.
=> Started MongoDB.
I20170829-15:08:14.714(-10)?
I20170829-15:08:14.796(-10)? --------------------------------
I20170829-15:08:14.800(-10)? ----- RUNNING SERVER TESTS -----
I20170829-15:08:14.801(-10)? --------------------------------
I20170829-15:08:14.802(-10)?
I20170829-15:08:14.803(-10)?
I20170829-15:08:14.804(-10)?
I20170829-15:08:14.805(-10)? CareerGoalCollection
I20170829-15:08:14.806(-10)? Kadira: completed instrumenting the app
=> Started your app.
=> App running at: http://localhost:3100/
I20170829-15:08:15.354(-10)?
I20170829-15:08:15.368(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne, #getSlug, #findNames (319ms)
I20170829-15:08:15.520(-10)?
I20170829-15:08:15.521(-10)? CourseCollection
I20170829-15:08:15.730(-10)?
I20170829-15:08:15.734(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (199ms)
I20170829-15:08:15.809(-10)?
I20170829-15:08:15.810(-10)? ✓ course shortname (74ms)
I20170829-15:08:15.884(-10)?
I20170829-15:08:15.886(-10)? CourseInstanceCollection
I20170829-15:08:16.370(-10)?
I20170829-15:08:16.371(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (208ms)
I20170829-15:08:16.390(-10)?
I20170829-15:08:16.391(-10)? ✓ #findCourseName, #toString
I20170829-15:08:16.472(-10)?
I20170829-15:08:16.473(-10)? AcademicPlanCollection
I20170829-15:08:16.854(-10)?
I20170829-15:08:16.855(-10)? ✓ #define, #isDefined, #findIdBySlug, #removeIt, #dumpOne, #restoreOne #checkIntegrity (343ms)
I20170829-15:08:16.932(-10)?
I20170829-15:08:16.933(-10)? AcademicYearInstanceCollection
I20170829-15:08:17.128(-10)?
I20170829-15:08:17.129(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne, #toString (147ms)
I20170829-15:08:17.248(-10)?
I20170829-15:08:17.249(-10)? ✓ #publish (119ms)
I20170829-15:08:17.376(-10)?
I20170829-15:08:17.378(-10)? AcademicYearUtilities
I20170829-15:08:17.378(-10)? Loaded database/testing/minimal.fixture.json: Sample definitions for basic entities.
I20170829-15:08:17.516(-10)? Loaded database/testing/abi.student.fixture.json: Defines student Abi Kealoha. Requires minimal.fixture.
I20170829-15:08:17.544(-10)? Loaded database/testing/extended.courses.interests.fixture.json: Extends minimal with remaining ICS/EE courses and interests.
I20170829-15:08:18.745(-10)? Loaded database/testing/abi.courseinstances.fixture.json: Abi's course instances. Requires abi.user and extended.courses.interests.
I20170829-15:08:19.242(-10)?
I20170829-15:08:19.243(-10)? ✓ #getStudentsCurrentSemesterNumber.
I20170829-15:08:19.249(-10)?
I20170829-15:08:19.251(-10)? ✓ #getStudentSemesters.
I20170829-15:08:19.927(-10)?
I20170829-15:08:19.928(-10)? DesiredDegreeCollection
I20170829-15:08:20.033(-10)?
I20170829-15:08:20.034(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (60ms)
I20170829-15:08:20.083(-10)?
I20170829-15:08:20.084(-10)? PlanChoiceCollection
I20170829-15:08:20.231(-10)?
I20170829-15:08:20.231(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne, #toStringFromSlug (83ms)
I20170829-15:08:20.291(-10)?
I20170829-15:08:20.292(-10)? PlanChoiceUtilities
I20170829-15:08:20.292(-10)?
I20170829-15:08:20.292(-10)? ✓ #stripCounter
I20170829-15:08:20.293(-10)?
I20170829-15:08:20.294(-10)? ✓ #is*Choice
I20170829-15:08:20.294(-10)?
I20170829-15:08:20.295(-10)? ✓ #complexChoiceToArray
I20170829-15:08:20.295(-10)?
I20170829-15:08:20.295(-10)? ✓ #buildCourseSlugName
I20170829-15:08:20.296(-10)?
I20170829-15:08:20.296(-10)? ✓ #satisfiesPlanChoice
I20170829-15:08:20.302(-10)?
I20170829-15:08:20.303(-10)? ✓ #getDepartment, #getDepartments
I20170829-15:08:20.304(-10)?
I20170829-15:08:20.305(-10)? PreferredChoice
I20170829-15:08:20.306(-10)? Loaded database/testing/minimal.fixture.json: Sample definitions for basic entities.
I20170829-15:08:20.436(-10)? Loaded database/testing/extended.courses.interests.fixture.json: Extends minimal with remaining ICS/EE courses and interests.
I20170829-15:08:21.527(-10)?
I20170829-15:08:21.528(-10)? ✓ #hasPreferences, #getBestChoices
I20170829-15:08:21.977(-10)?
I20170829-15:08:21.977(-10)? FeedCollection
I20170829-15:08:22.090(-10)?
I20170829-15:08:22.090(-10)? ✓ #define (new-user), #isDefined, #removeIt, #dumpOne, #restoreOne (89ms)
I20170829-15:08:22.177(-10)?
I20170829-15:08:22.178(-10)? ✓ #define (multiple new-user) (87ms)
I20170829-15:08:22.209(-10)?
I20170829-15:08:22.209(-10)? ✓ #define (new-course)
I20170829-15:08:22.411(-10)?
I20170829-15:08:22.412(-10)? ✓ #define (new-opportunity) (202ms)
I20170829-15:08:22.558(-10)?
I20170829-15:08:22.558(-10)? ✓ #define (verified-opportunity) (145ms)
I20170829-15:08:22.630(-10)?
I20170829-15:08:22.630(-10)? ✓ #define (new-course-review) (73ms)
I20170829-15:08:22.731(-10)?
I20170829-15:08:22.732(-10)? ✓ #define (new-opportunity-review) (101ms)
I20170829-15:08:22.848(-10)?
I20170829-15:08:22.848(-10)? FeedbackInstanceCollection
I20170829-15:08:22.914(-10)?
I20170829-15:08:22.915(-10)? ✓ #define, #removeIt, #dumpOne, #restoreOne (41ms)
I20170829-15:08:22.937(-10)?
I20170829-15:08:22.938(-10)? ✓ #clear
I20170829-15:08:22.995(-10)?
I20170829-15:08:22.995(-10)? HelpMessageCollection
I20170829-15:08:23.077(-10)?
I20170829-15:08:23.077(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (51ms)
I20170829-15:08:23.104(-10)?
I20170829-15:08:23.104(-10)? IceProcessor
I20170829-15:08:23.106(-10)?
I20170829-15:08:23.106(-10)? ✓ #isICE, #assertICE
I20170829-15:08:23.106(-10)?
I20170829-15:08:23.106(-10)? ✓ #makeCourseICE
I20170829-15:08:23.107(-10)? Loaded database/testing/minimal.fixture.json: Sample definitions for basic entities.
I20170829-15:08:23.248(-10)? Loaded database/testing/extended.courses.interests.fixture.json: Extends minimal with remaining ICS/EE courses and interests.
I20170829-15:08:24.848(-10)? Loaded database/testing/abi.student.fixture.json: Defines student Abi Kealoha. Requires minimal.fixture.
I20170829-15:08:24.866(-10)? Loaded database/testing/abi.courseinstances.fixture.json: Abi's course instances. Requires abi.user and extended.courses.interests.
I20170829-15:08:26.109(-10)?
I20170829-15:08:26.109(-10)? ✓ #getEarnedICE, #getProjectedICE (3002ms)
I20170829-15:08:26.109(-10)?
I20170829-15:08:26.110(-10)? InterestCollection
I20170829-15:08:26.245(-10)?
I20170829-15:08:26.245(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (61ms)
I20170829-15:08:26.266(-10)?
I20170829-15:08:26.266(-10)? ✓ #define (multiple definition)
I20170829-15:08:26.338(-10)?
I20170829-15:08:26.338(-10)? ✓ #assertDefined, assertAllDefined (71ms)
I20170829-15:08:26.463(-10)?
I20170829-15:08:26.464(-10)? ✓ #find, #findDoc, #findDocBySlug, #findIdBySlug, #findIdsBySlugs, #findNames (125ms)
I20170829-15:08:26.494(-10)?
I20170829-15:08:26.494(-10)? ✓ #hasSlug
I20170829-15:08:26.573(-10)?
I20170829-15:08:26.574(-10)? InterestTypeCollection
I20170829-15:08:26.655(-10)?
I20170829-15:08:26.656(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (48ms)
I20170829-15:08:26.675(-10)?
I20170829-15:08:26.677(-10)? ✓ #define (multiple definition)
I20170829-15:08:26.719(-10)?
I20170829-15:08:26.721(-10)? ✓ #findDocBySlug (42ms)
I20170829-15:08:26.751(-10)?
I20170829-15:08:26.752(-10)? ✓ #findDoc
I20170829-15:08:26.778(-10)?
I20170829-15:08:26.780(-10)? ✓ #find
I20170829-15:08:26.828(-10)?
I20170829-15:08:26.828(-10)? LevelProcessor Tests
I20170829-15:08:26.877(-10)? - Level 1 Student
I20170829-15:08:26.934(-10)?
I20170829-15:08:26.936(-10)? AdvisorLogCollection
I20170829-15:08:27.276(-10)?
I20170829-15:08:27.277(-10)? ✓ #define, #isDefined, #removeIt #dumpOne, #restoreOne, #checkIntegrity (72ms)
I20170829-15:08:27.302(-10)?
I20170829-15:08:27.302(-10)? ✓ #getAdvisorDoc, #getStudentDoc, #checkIntegrity
I20170829-15:08:27.307(-10)?
I20170829-15:08:27.308(-10)? ✓ #publish
I20170829-15:08:27.357(-10)?
I20170829-15:08:27.358(-10)? MentorAnswerCollection
I20170829-15:08:27.389(-10)? Defining user mentor-2017082915082738200@hawaii.edu with password R074i3h
I20170829-15:08:27.699(-10)?
I20170829-15:08:27.700(-10)? ✓ #define, #isDefined, #removeIt (316ms)
I20170829-15:08:27.703(-10)? Defining user mentor-2017082915082769900@hawaii.edu with password zdHGpgiL
I20170829-15:08:27.799(-10)? Defining user mentor-2017082915082779600@hawaii.edu with password hmhwJZkS
I20170829-15:08:27.952(-10)?
I20170829-15:08:27.952(-10)? ✓ #removeQuestion, #removeUser (254ms)
I20170829-15:08:28.004(-10)?
I20170829-15:08:28.005(-10)? MentorQuestionCollection
I20170829-15:08:28.081(-10)?
I20170829-15:08:28.082(-10)? ✓ #define, #isDefined, #removeIt
I20170829-15:08:28.114(-10)?
I20170829-15:08:28.114(-10)? OpportunityCollection
I20170829-15:08:28.338(-10)?
I20170829-15:08:28.338(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (179ms)
I20170829-15:08:28.384(-10)?
I20170829-15:08:28.385(-10)? OpportunityInstanceCollection
I20170829-15:08:28.650(-10)?
I20170829-15:08:28.651(-10)? ✓ #define, #isDefined, #removeIt, #toString, #dumpOne, #restoreOne, findOpportunityInstance (231ms)
I20170829-15:08:28.703(-10)?
I20170829-15:08:28.704(-10)? OpportunityTypeCollection
I20170829-15:08:28.756(-10)?
I20170829-15:08:28.756(-10)? ✓ #define, #isDefined, #removeIt
I20170829-15:08:28.779(-10)?
I20170829-15:08:28.779(-10)? ✓ #define (multiple definition)
I20170829-15:08:28.794(-10)?
I20170829-15:08:28.795(-10)? ✓ #findDocBySlug
I20170829-15:08:28.804(-10)?
I20170829-15:08:28.805(-10)? ✓ #findDoc
I20170829-15:08:28.819(-10)?
I20170829-15:08:28.822(-10)? ✓ #find
I20170829-15:08:28.860(-10)?
I20170829-15:08:28.861(-10)? PublicStatsCollecion
I20170829-15:08:28.943(-10)?
I20170829-15:08:28.943(-10)? ✓ #careerGoalsTotal, #careerGoalsList (51ms)
I20170829-15:08:28.973(-10)?
I20170829-15:08:28.974(-10)? ReviewCollection
I20170829-15:08:29.253(-10)?
I20170829-15:08:29.253(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (243ms)
I20170829-15:08:29.303(-10)?
I20170829-15:08:29.304(-10)? Role
I20170829-15:08:29.319(-10)?
I20170829-15:08:29.320(-10)? ✓ Test role definitions, isRole
I20170829-15:08:29.321(-10)?
I20170829-15:08:29.328(-10)? ✓ assertRole
I20170829-15:08:29.328(-10)?
I20170829-15:08:29.328(-10)? SemesterCollection
I20170829-15:08:29.389(-10)?
I20170829-15:08:29.390(-10)? ✓ #get, #isDefined, #removeIt, #dumpOne, #restoreOne
I20170829-15:08:29.408(-10)?
I20170829-15:08:29.409(-10)? ✓ #get (multiple definition)
I20170829-15:08:29.418(-10)?
I20170829-15:08:29.419(-10)? ✓ #assertSemester
I20170829-15:08:29.433(-10)?
I20170829-15:08:29.434(-10)? ✓ #toString
I20170829-15:08:29.476(-10)?
I20170829-15:08:29.476(-10)? ✓ #semesterNumber (43ms)
I20170829-15:08:29.499(-10)?
I20170829-15:08:29.500(-10)? ✓ #getID
I20170829-15:08:29.511(-10)?
I20170829-15:08:29.511(-10)? ✓ #getShortName
I20170829-15:08:29.563(-10)?
I20170829-15:08:29.564(-10)? SlugCollection
I20170829-15:08:29.595(-10)?
I20170829-15:08:29.595(-10)? ✓ #isValidSlugName
I20170829-15:08:29.611(-10)?
I20170829-15:08:29.611(-10)? ✓ #define, #removeIt, #isDefined, #dumpOne, #restoreOne, #checkIntegrity, #hasSlug
I20170829-15:08:29.617(-10)?
I20170829-15:08:29.617(-10)? ✓ #define (multiple definition)
I20170829-15:08:29.623(-10)?
I20170829-15:08:29.624(-10)? ✓ #findDoc
I20170829-15:08:29.633(-10)?
I20170829-15:08:29.634(-10)? ✓ #getType, #toString, #assertSlug
I20170829-15:08:29.646(-10)?
I20170829-15:08:29.647(-10)? ✓ #getNameFromID, #isSlugForEntity, #getEntityID, #updateEntityID
I20170829-15:08:29.675(-10)?
I20170829-15:08:29.676(-10)? StarProcessor
I20170829-15:08:29.711(-10)? Loaded database/testing/minimal.fixture.json: Sample definitions for basic entities.
I20170829-15:08:29.800(-10)? Loaded database/testing/extended.courses.interests.fixture.json: Extends minimal with remaining ICS/EE courses and interests.
I20170829-15:08:30.766(-10)? Loaded database/testing/abi.student.fixture.json: Defines student Abi Kealoha. Requires minimal.fixture.
I20170829-15:08:31.034(-10)?
I20170829-15:08:31.034(-10)? ✓ #processStarCsvData (1324ms)
I20170829-15:08:31.035(-10)? - check real data
I20170829-15:08:31.612(-10)?
I20170829-15:08:31.613(-10)? TeaserCollection
I20170829-15:08:31.874(-10)?
I20170829-15:08:31.875(-10)? ✓ #define, #isDefined, #removeIt, #dumpOne, #restoreOne (223ms)
I20170829-15:08:31.963(-10)?
I20170829-15:08:31.964(-10)? AdvisorProfileCollection
I20170829-15:08:32.098(-10)?
I20170829-15:08:32.099(-10)? ✓ #define, #isDefined, #update, #removeIt, #dumpOne, #restoreOne (95ms)
I20170829-15:08:32.137(-10)?
I20170829-15:08:32.138(-10)? FacultyProfileCollection
I20170829-15:08:32.298(-10)?
I20170829-15:08:32.298(-10)? ✓ #define, #isDefined, #update, #removeIt, #dumpOne, #restoreOne (74ms)
I20170829-15:08:32.329(-10)?
I20170829-15:08:32.330(-10)? MentorProfileCollection
I20170829-15:08:32.379(-10)? Defining user rbrewer@tableau.com with password Izpyrcb
I20170829-15:08:32.509(-10)? Defining user rbrewer@tableau.com with password n7G9B8N
I20170829-15:08:32.655(-10)?
I20170829-15:08:32.655(-10)? ✓ #define, #isDefined, #update, #removeIt, #dumpOne, #restoreOne (280ms)
I20170829-15:08:32.692(-10)?
I20170829-15:08:32.692(-10)? StudentProfileCollection
I20170829-15:08:32.831(-10)?
I20170829-15:08:32.831(-10)? ✓ #define, #isDefined, #update, #removeIt, #dumpOne, #restoreOne (93ms)
I20170829-15:08:32.871(-10)?
I20170829-15:08:32.871(-10)? VerificationRequestCollection
I20170829-15:08:33.120(-10)?
I20170829-15:08:33.121(-10)? ✓ #define, #isDefined, #removeIt, #findOne, #toString, #dumpOne, #restoreOne (209ms)
I20170829-15:08:33.266(-10)?
I20170829-15:08:33.266(-10)? ✓ #define using semester and opportunity (146ms)
I20170829-15:08:33.341(-10)?
I20170829-15:08:33.341(-10)?
I20170829-15:08:33.342(-10)? 80 passing (19s)
I20170829-15:08:33.342(-10)? 2 pending
I20170829-15:08:33.342(-10)?
I20170829-15:08:33.343(-10)?
I20170829-15:08:33.344(-10)? --------------------------------
I20170829-15:08:33.344(-10)? ----- RUNNING CLIENT TESTS -----
I20170829-15:08:33.345(-10)? --------------------------------
I20170829-15:08:36.030(-10)?
I20170829-15:08:36.031(-10)?
I20170829-15:08:36.031(-10)? 0 passing (1ms)
I20170829-15:08:36.031(-10)?
I20170829-15:08:36.048(-10)? [ERROR] There is no route for the path: /
I20170829-15:08:36.149(-10)? All tests finished!
I20170829-15:08:36.150(-10)?
I20170829-15:08:36.150(-10)? --------------------------------
I20170829-15:08:36.151(-10)? SERVER FAILURES: 0
I20170829-15:08:36.151(-10)? CLIENT FAILURES: 0
I20170829-15:08:36.152(-10)? --------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment