DEV Community

Kray-G
Kray-G

Posted on

2

How do you test your code?

Hello, everyone!

I am sometimes tired to write a specification.
I am also tired to write a test code.
Don't you think so?

SpecTest

That is why I setup a test system that I named SpecTest.

Look at the following site.

https://kray-g.github.io/kinx/

This is published as a specification of my scripting language, but it will also become a test code as is.

This means that to write a specification with examples is that you can get a test code.

In almost all cases, there are many examples when people write a document.
SpecTest will test those examples as is.

What do you get?

There are 2 good points for developpers.

  1. Reduce your cost for creating 2 different documents . All you have to do is to create just 1 document.
  2. You can check if your examples you write in a document is correct. Sometimes there is an example which does not work correctly in the world.

If you think it is good, push a star on Github. It will make me happy. πŸ˜„

And also any pull request, issue, or suggestion will be welcome anytime.

Thanks for reading this article until the end.

See you!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here β†’

Top comments (2)

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ β€’

How do you test your code?

Manually

Collapse
 
ezradavis profile image
EzraDavis β€’

How do I test my Python code?
How to punish someone who hurt you spell

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay