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

Compile warning: var devcards.core/test-doc is not public #157

Open
n2o opened this issue Feb 28, 2019 · 3 comments
Open

Compile warning: var devcards.core/test-doc is not public #157

n2o opened this issue Feb 28, 2019 · 3 comments
Labels

Comments

@n2o
Copy link

n2o commented Feb 28, 2019

Hey, I am experimenting with dc/deftest and tried to implement some tests directly in devcards. Previously I wrote tests with lein doo, but this is not really satisfying.

However, I am getting the error message that test-doc is not public. I am not quite sure, why this error appears. I have many devcards in this project and they are all operating well. Also the other tests are all okay.

(ns some.namespace
   (:require
             [cljs.test :refer [testing is are]]
             [devcards.core :as dc]))
 
 (dc/deftest foo
 ^--- var: devcards.core/test-doc is not public
   "Sample card"
   (testing "Fix me, I fail"
     (is false)))

Some of my dependencies:

[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.520"]
[devcards "0.2.6"]
[com.bhauman/figwheel-main "0.2.0"]
[com.bhauman/rebel-readline-cljs "0.1.4"]

Thanks for your help. I have no idea what could be wrong. I am using devcards in several projects and i love it, but this is a strange error message.

@bhauman
Copy link
Owner

bhauman commented Feb 28, 2019

This is probably because you are using the latest clojurescript.

Are you familiar with cljs-test-display?
https://github.com/bhauman/cljs-test-display

You should be using it for tests instead of devcards.

@bhauman bhauman added the bug label Feb 28, 2019
@n2o
Copy link
Author

n2o commented Mar 6, 2019

I am now using cljs-test-display, which is a great alternative, yes. Although it was hard to follow your instructions in your README. Had to combine it with instructions from the figwheel-main documentation.

Okay, I can use this for testing, thanks. But still, your library provides the deftest cards.

@danielstockton
Copy link

Also getting devcards.core/dom-node* is not public with latest cljs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants