Skip to content

Conversation

@indocomsoft
Copy link
Member

@indocomsoft indocomsoft commented May 23, 2018

I have not yet written tests for lib/cadet/assessments.ex because @sreycodes is still writing the code for the assessment context.

@coveralls
Copy link

coveralls commented May 23, 2018

Pull Request Test Coverage Report for Build 267

  • 22 of 22 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.7%) to 94.845%

Totals Coverage Status
Change from base Build 261: 0.7%
Covered Lines: 184
Relevant Lines: 194

💛 - Coveralls

@indocomsoft indocomsoft self-assigned this May 23, 2018
@indocomsoft indocomsoft requested a review from evansb May 23, 2018 16:03
@indocomsoft indocomsoft added this to the Sprint 1 milestone May 23, 2018
@indocomsoft indocomsoft changed the title [WIP] Implement Assessment.QuestionType entities Implement Assessment.QuestionType entities May 23, 2018
embedded_schema do
field(:content, :string)
field(:solution_template, :string)
field(:solution_header, :string)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be optional field, I think it's needed only for path

|> ProgrammingQuestion.changeset(%{raw_programmingquestion: json_attr})
end

def create_programmingquestion(attr = %{}) do
Copy link
Contributor

Choose a reason for hiding this comment

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

create_programming_question is a bit easier to read.

|> MCQQuestion.changeset(%{raw_mcqquestion: json_attr})
end

def create_mcqquestion(attr = %{}) do
Copy link
Contributor

Choose a reason for hiding this comment

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

create_multiple_choice_question

@indocomsoft
Copy link
Member Author

Done.

@indocomsoft indocomsoft mentioned this pull request May 26, 2018
28 tasks
@indocomsoft indocomsoft merged commit fc8e226 into master Jun 8, 2018
@indocomsoft indocomsoft deleted the question-types branch June 8, 2018 15:33
sreycodes pushed a commit that referenced this pull request Jun 11, 2018
* Implement question types

* Add tests

* Add library to ProgrammingQuestion

* Remove debug output and mix format

* Fix according to code review

* Bypass coveralls

* Comment out assessments context to allow merging
indocomsoft added a commit that referenced this pull request Aug 17, 2018
* Implement question types

* Add tests

* Add library to ProgrammingQuestion

* Remove debug output and mix format

* Fix according to code review

* Bypass coveralls

* Comment out assessments context to allow merging
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.

4 participants