Code Monkey home page Code Monkey logo

Comments (3)

ItsLastDay avatar ItsLastDay commented on July 20, 2024

I think I made it, but no idea how to test out. Which behaviour should I see?

from codecombat.

sderickson avatar sderickson commented on July 20, 2024

Hi @ItsLastDay, sorry for the slow reply! The best way to test this is to write a unit test for it. I set it up now (there were some bugs with the server testing but they're done now). I ran the test and it looks like it's buggy. To run the test:

  1. Use the new branch I've added with my test added to your branch.
  2. Run coco-test-server
  3. Run coco-server-test-runner

This should crash the test server with an error. The new test is here. It creates a level, adds broad permissions, removes them, then logs in as another user, then tries to post a new version from the version with broad permissions.

from codecombat.

ItsLastDay avatar ItsLastDay commented on July 20, 2024

@sderickson, thank you for the test! When you originally posted it, I've checked it out and saw error. Unit testing is rather new to me, so it is a good experience.
However, yesterday I failed to run it, even without changes in Handler.coffee it showed errors (something related to articles), so at the current state I think I can't manage to do updates in versioning system without significant digging.
Maybe will come back when I have time!

from codecombat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.